﻿using System.Collections.Generic;

namespace WeWork.SDK.Framework.Entitys.Send
{
    /// <summary>
    /// 会话记录消息
    /// </summary>
    public class ChatRecord : ChatSend
    {
        public ChatRecordDetail chatrecord { get; set; }
    }

    public class ChatRecordDetail
    {
        /// <summary>
        /// 聊天记录标题。String类型
        /// </summary>
        public string title { get; set; }

        /// <summary>
        /// 消息记录内的消息内容，批量数据
        /// </summary>
        public List<ChatRecordItem> item { get; set; }
    }

    public class ChatRecordItem
    {
        /// <summary>
        /// 每条聊天记录的具体消息类型：ChatRecordText/ ChatRecordFile/ ChatRecordImage/ ChatRecordVideo/ ChatRecordLink/ ChatRecordLocation/ ChatRecordMixed ….
        /// </summary>
        public string type { get; set; }

        /// <summary>
        /// 消息时间，utc时间，单位秒。
        /// </summary>
        public long msgtime { get; set; }

        /// <summary>
        /// 消息内容。Json串，内容为对应类型的json。String类型
        /// </summary>
        public string content { get; set; }

        /// <summary>
        /// 是否来自群会话。Bool类型
        /// </summary>
        public bool from_chatroom { get; set; }
    }
}
